package com.iot.ht.controller.htpage.data;

import com.iot.core.data.BaseDto;
import io.swagger.v3.oas.annotations.media.Schema;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@Schema(name = "功能页面Dto",description = "")
public class HtPageDto extends BaseDto {

    @Schema(name = "页面代码",description = "网站Url")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  code ="";

    @Schema(name = "页面名称",description = "")
    @NotBlank(message = "页面名称不能为空")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  name ="";

    @Schema(name = "备注",description = "")
    private  String  memo ="";

    @Schema(name = "图标",description = "")
    private  String  imgurl ="";

    @Schema(name = "类型",description = "平台、网站、小程序、终端")
    @Size(min =0,max = 10,message = "长度范围0-10")
    private  String  lx ="";

    @Schema(name = "参数1",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  p1 ="";

    @Schema(name = "参数2",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  p2 ="";

    @Schema(name = "参数3",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  p3 ="";

    @Schema(name = "参数4",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  p4 ="";

    @Schema(name = "Auths",description = "")
    private List<HtPageAuthDto> auths=new ArrayList<>();

    @Schema(name = "创建日期",description = "")
    private Date crtDt ;

    @Schema(name = "创建人",description = "")
    private  String  crtUname ="";

    @Schema(name = "修改日期",description = "")
    private  Date  edtDt ;

    @Schema(name = "修改人",description = "")
    private  String  edtUname ="";

}
